import request from '@/utils/request'

// 发布新文章
export const addArticleAPI = fd => {
  // return request.post('/my/article/add', fd)
  return request({
    method: 'POST',
    url: '/my/article/add',
    data: fd
  })
}

// 获取文章列表数据
// export const getArticleAPI = params => {
//   return request({
//     method: 'GET',
//     url: '/my/article/list',
//     params: params
//   })
// }

export const getArticleAPI = params => request.get('/my/article/list', { params })
